package demo1;

public class Test01 {
    public static int div(int a, int b) {
        int c = a/b;
        return c;
    }
    public static void main(String[] args) {
        int a = div(10,2);
        System.out.println(a);

        try {
            int b = div(10, 0);
            System.out.println(b);
        } finally {
            System.out.println("代码出错了");
        }
    }
}
